package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.ObjectQuery;

import java.util.List;
import java.util.Map;

public interface ProductMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Product record);

    Product selectByPrimaryKey(Long id);

    List<Product> selectAll();

    void updateByPrimaryKey(Product record);

    int queryForCount(ObjectQuery qo);

    List<Product> queryForList(ObjectQuery qo);

    void changState(Long id);

    void deductionState(Long id);

    List<Product> queryByOrganizationId(Long id);

    List<Map> queryProductListByBillId(Long insurancebillId);

    List<Product> queryProductByBillId(Long id);

}